//
// Created by Yucheng on 6/2/17.
//

#include "CppUTest/MemoryLeakDetectorMallocMacros.h"
#include "CppUTest/MemoryLeakDetectorNewMacros.h"
#include "cpputest.hpp"
#include "CppUTest/TestHarness.h"

TEST_GROUP(dao_user)
{
    TestApp app;

    void setup()
    {
        app.setup();
    }
    
    void teardown()
    {
        
    }
};

TEST(dao_user, create)
{
    int errCode = diylane::dao::User::singleton().create("crazbot", "123456781");
    std::cout << "errCode: " << errCode << std::endl;
}

TEST(dao_user, login)
{
    int errCode = diylane::dao::User::singleton().login("crazbot", "123456781");
    std::cout << "errCode: " << errCode << std::endl;
}
